<?php
class OffersController extends MACController{
	
	public function sendofferAction()
	{
		$this->logger->info("OffersController::sendofferAction");
		$this->disableLayout();
				
		//retrieve post params
		$offer_id = $this->getParam("offer_id");
		
		//format email with value & content
		if(OffersFactory::getInstance()->prepareAndSendOffer($offer_id))
		{
			
		}	
		
	}
	
	
	
	
	
	
	
	public function disableLayout() {
		$this->_helper->viewRenderer->setNoRender ( true );
		$this->_helper->layout->disableLayout ();
		$this->_helper->removeHelper ( 'viewRenderer' );
	}
}